#include <stdio.h>

int main()
{
	int m, n;
	int output = 1;
	printf("Please input a m^n:");
	scanf("%d^%d", &m, &n);
	for(int i = 0; i < n; i++)
	{
		output = output * m;
	}
	printf("%d^%d=%d\n", m, n, output);
	return 0;
}
